<script setup>
import Left from './Left.vue'
import Right from './Right.vue'

import { ref } from 'vue'
const flag = ref(true)
</script>

<template>
  <button @click="flag = !flag">Toggle</button>
  <div class="app-container">
    <Left />
    <Right v-if="flag" />
  </div>
</template>

<style scoped>
.app-container {
  display: flex;
  gap: 10px;
  padding: 10px;
}
</style>
